<?php
namespace app\common\model;
use think\model\concern\SoftDelete;

class WorkRecordAccount extends TyModel {

    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;

    //收支
    public function getIncomeAndExpendNameAttr($value,$data){
        $status = [1 => '收入', 2 => '支出'];
        return $status[$data['income_and_expend']];
    }
}